package org.dubbo.resources;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**   
* @Title: Provider.java 
* @Package com.dubbo.server 
* @Description: TODO(用一句话描述该文件做什么) 
* @author liusongqing 
* @Company www.viewhigh.com
* @date 2016年8月19日 下午2:01:36 
* @version V1.0   
*/
public class Provider {
    public static void main(String[] args) throws IOException {
        //ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "applicationContext.xml" });
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("bean/dubbo-server-root-bean.xml");
        context.start();
        System.in.read(); // 为保证服务一直开着，利用输入流的阻塞来模拟

    }
}

